package com.imooc.enums;

import lombok.Getter;

/**
 * 订单状态枚举
 */

public enum OrderStatusEnum {
    /**
     * 待支付
     */
    TO_BE_PAYED("待支付",10),
    PAYED("已支付, 待发货",20),
    DELIVERED("已发货",30),
    SUCCESS("交易成功",40),
    FAIL("交易失败",50)
    ;

    OrderStatusEnum(String name, Integer code) {
        this.name = name;
        this.code = code;
    }

    public final String name;
    public final Integer code;

}
